public class Demo3_Operator {
    public static void main(String[] args) {
        //(关系表达式) ? 表达式1 : 表达式2;
        int x = 10;
        int y = 5;
        int z;
        z = (x > y) ? x : y;

        System.out.println("z = " + z);
    }
}
